var nn;
nn=1;
setTimeout('change_img()',6000);
function change_img()
{
	 if(nn>8) nn=1
	 setTimeout('setFocus1('+nn+')',6000);
	 nn++;
	 tt=setTimeout('change_img()',6000);
}
function setFocus1(i)
{
 selectLayer1(i);
}
function selectLayer1(i)
{
 switch(i)
 {
 case 1:
	 document.getElementById("focusPic1").style.display="block";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="block";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 2:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="block";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="block";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 3:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="block";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="block";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 4:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="block";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="block";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 5:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="block";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="block";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 6:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="block";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="block";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 7:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="block";
	 document.getElementById("focusPic8").style.display="none";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="block";
	 document.getElementById("focusPic8nav").style.display="none";
	 break;
 case 8:
	 document.getElementById("focusPic1").style.display="none";
	 document.getElementById("focusPic2").style.display="none";
	 document.getElementById("focusPic3").style.display="none";
	 document.getElementById("focusPic4").style.display="none";
	 document.getElementById("focusPic5").style.display="none";
	 document.getElementById("focusPic6").style.display="none";
	 document.getElementById("focusPic7").style.display="none";
	 document.getElementById("focusPic8").style.display="block";
	 document.getElementById("focusPic1nav").style.display="none";
	 document.getElementById("focusPic2nav").style.display="none";
	 document.getElementById("focusPic3nav").style.display="none";
	 document.getElementById("focusPic4nav").style.display="none";
	 document.getElementById("focusPic5nav").style.display="none";
	 document.getElementById("focusPic6nav").style.display="none";
	 document.getElementById("focusPic7nav").style.display="none";
	 document.getElementById("focusPic8nav").style.display="block";
	 break;
 }
}
